#!/bin/sh

tps=`/usr/local/nagios/libexec/check_nrpe -H $1 -c check_sdaIO | awk -F '|' '{print $2}' | awk -F';;;' '{print $1}'|awk -F '=' '{print $2}'|awk -F 'io/s' '{print $1}'`
readin=`/usr/local/nagios/libexec/check_nrpe -H $1 -c check_sdaIO | awk -F '|' '{print $2}' | awk -F';;;' '{print $2}'|awk -F '=' '{print $2}'|awk -F 'b/s' '{print $1}'`
write=`/usr/local/nagios/libexec/check_nrpe -H $1 -c check_sdaIO | awk -F '|' '{print $2}' | awk -F';;;' '{print $3}'|awk -F '=' '{print $2}'|awk -F 'b/s' '{print $1}'`


echo "tps:"$tps" read:"$readin" write:"$write" "
